<template>
	<view :class="[`${PREFIX}`]">
		<view :class="[`${PREFIX}-title`]">基础搜索</view>
		<view :class="[`${PREFIX}-jc`]">
			<view :class="[`${PREFIX}-jc-left`]">性别</view>
			<view :class="[`${PREFIX}-jc-right`]">
				<view :class="[`${PREFIX}-xb`]">
					<view :class="[`${PREFIX}-xb-item`,`${PREFIX}-xb-active`]">不限</view>
					<view :class="[`${PREFIX}-xb-item`]">男</view>
					<view :class="[`${PREFIX}-xb-item`]">女</view>
				</view>
			</view>
		</view>
		<view :class="[`${PREFIX}-jc`]">
			<view :class="[`${PREFIX}-jc-left`]">年龄</view>
			<view :class="[`${PREFIX}-jc-right`,`${PREFIX}-jc-contentRight`]">18-24</view>
		</view>
		<view :class="[`${PREFIX}-jc`]">
			<view :class="[`${PREFIX}-jc-left`]">身高</view>
			<view :class="[`${PREFIX}-jc-right`,`${PREFIX}-jc-contentRight`]">不限</view>
		</view>
		<view :class="[`${PREFIX}-jc`]">
			<view :class="[`${PREFIX}-jc-left`]">收入</view>
			<view :class="[`${PREFIX}-jc-right`,`${PREFIX}-jc-contentRight`]">不限</view>
		</view>

		<!-- 高级 -->
		<view :class="[`${PREFIX}-gj`]">
			<view :class="[`${PREFIX}-gj-left`]">工作所在地</view>
			<view :class="[`${PREFIX}-gj-right`]" @click="gjRight">
				不限
				<image src="" mode=""></image>
			</view>
		</view>
		<view :class="[`${PREFIX}-gj`]">
			<view :class="[`${PREFIX}-gj-left`]">是否接受异地变</view>
			<view :class="[`${PREFIX}-gj-right`]" @click="gjRight">
				不限
				<image src="" mode=""></image>
			</view>
		</view>
		<view :class="[`${PREFIX}-gj`]">
			<view :class="[`${PREFIX}-gj-left`]">何时结婚</view>
			<view :class="[`${PREFIX}-gj-right`]" @click="gjRight">
				不限
				<image src="" mode=""></image>
			</view>
		</view>
		<view :class="[`${PREFIX}-gj`]">
			<view :class="[`${PREFIX}-gj-left`]">婚后是否同住</view>
			<view :class="[`${PREFIX}-gj-right`]" @click="gjRight">
				不限
				<image src="" mode=""></image>
			</view>
		</view>
		<view :class="[`${PREFIX}-gj`]">
			<view :class="[`${PREFIX}-gj-left`]">购房情况</view>
			<view :class="[`${PREFIX}-gj-right`]" @click="gjRight">
				不限
				<image src="" mode=""></image>
			</view>
		</view>
		<view :class="[`${PREFIX}-gj`]">
			<view :class="[`${PREFIX}-gj-left`]">购车情况</view>
			<view :class="[`${PREFIX}-gj-right`]" @click="gjRight">
				不限
				<image src="" mode=""></image>
			</view>
		</view>
		<view :class="[`${PREFIX}-gj`]">
			<view :class="[`${PREFIX}-gj-left`]">婚况</view>
			<view :class="[`${PREFIX}-gj-right`]" @click="gjRight">
				不限
				<image src="" mode=""></image>
			</view>
		</view>
		<view :class="[`${PREFIX}-gj`]">
			<view :class="[`${PREFIX}-gj-left`]">是否有小孩</view>
			<view :class="[`${PREFIX}-gj-right`]" @click="gjRight">
				不限
				<image src="" mode=""></image>
			</view>
		</view>
		<view :class="[`${PREFIX}-gj`]">
			<view :class="[`${PREFIX}-gj-left`]">故乡</view>
			<view :class="[`${PREFIX}-gj-right`]" @click="gjRight">
				不限
				<image src="" mode=""></image>
			</view>
		</view>
		<CButton text="开始筛选" @click="sureSelect"></CButton>
	</view>
</template>
+
<script>
	const PREFIX = 'friends-select'
	import CButton from '../../../components/CButton.vue'
	export default {
		data() {
			return {
				PREFIX
			}
		},
		components: {
			CButton
		},
		methods: {
			gjRight() {
				let itemInfo = ['item1', 'item2', 'item3', 'item4']
				uni.showActionSheet({
					title: 'title',
					itemList: itemInfo,
					success: (val) => {
						console.log(val);
					}
				})

			},
			sureSelect() {
				console.log('aaaaaaaaaa');
				this.$emit('sureSelect')
			}
		}
	}
</script>

<style lang="less">
	.friends-select {
		background: #fff;
		padding: 0 40rpx;
		box-sizing: border-box;

		&-title {
			height: 100rpx;
			line-height: 100rpx;
			color: #000000;
			font-size: 36rpx;
		}

		&-jc {
			display: flex;
			justify-content: space-between;
			align-items: center;

			&-left {
				color: #999999;
				font-size: 28rpx;
			}

			&-right {
				flex: 1;
			}

			&-contentRight {
				display: flex;
				justify-content: flex-end;
			}
		}

		&-xb {
			display: flex;
			justify-content: flex-end;

			&-item {
				display: flex;
				justify-content: center;
				align-items: center;
				width: 128rpx;
				height: 55rpx;
				border-radius: 28rpx;
				border: 2rpx solid #7355ff;
				color: #7355ff;

				&:not(:last-child) {
					margin-right: 48rpx;
				}
			}

			&-active {
				background: #7355ff;
				color: #fff;
			}

		}

		&-gj {
			height: 100rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			color: #333333;
			font-size: 32rpx;

			&-right {
				display: flex;
				align-items: center;

				image {
					width: 20px;
					height: 20px;
					background: blue;
					margin-left: 20rpx;
				}
			}
		}
	}
</style>